import { Tooltip } from "antd"; // 假设你在使用 antd 库，确保已安装并引入
import styled from "styled-components";
import { StyledAlertCircle } from "../common-styled";

const CenterDiv = styled("div")`
   display: "felex",
   alignItems: "center"
`;

interface LicensePlateProps {
  label: string;
  tooltipTitle: string;
}

const LabelToolTip: React.FC<LicensePlateProps> = ({ label, tooltipTitle }) => {
  return (
    <CenterDiv>
      {label} &emsp;
      <Tooltip autoAdjustOverflow title={tooltipTitle}>
        <StyledAlertCircle />
      </Tooltip>
    </CenterDiv>
  );
};

export default LabelToolTip;
